/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>First Fill Pharmacy Supply Type</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S16209 (C-0-T13953-A13954-A16208-S16209-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getFirstFillPharmacySupplyType()
 * @model extendedMetaData="name='FirstFillPharmacySupplyType'"
 * @generated
 */
public enum FirstFillPharmacySupplyType implements Enumerator {
	/**
	 * The '<em><b>FF</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #FF_VALUE
	 * @generated
	 * @ordered
	 */
	FF(0, "FF", "FF"),

	/**
	 * The '<em><b>DF</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #DF_VALUE
	 * @generated
	 * @ordered
	 */
	DF(1, "DF", "DF"),

	/**
	 * The '<em><b>FFC</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #FFC_VALUE
	 * @generated
	 * @ordered
	 */
	FFC(2, "FFC", "FFC"),

	/**
	 * The '<em><b>FFP</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #FFP_VALUE
	 * @generated
	 * @ordered
	 */
	FFP(3, "FFP", "FFP"),

	/**
	 * The '<em><b>TF</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #TF_VALUE
	 * @generated
	 * @ordered
	 */
	TF(4, "TF", "TF"),

	/**
	 * The '<em><b>UD</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #UD_VALUE
	 * @generated
	 * @ordered
	 */
	UD(5, "UD", "UD");

	/**
	 * The '<em><b>FF</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>FF</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #FF
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int FF_VALUE = 0;

	/**
	 * The '<em><b>DF</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>DF</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #DF
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int DF_VALUE = 1;

	/**
	 * The '<em><b>FFC</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>FFC</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #FFC
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int FFC_VALUE = 2;

	/**
	 * The '<em><b>FFP</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>FFP</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #FFP
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int FFP_VALUE = 3;

	/**
	 * The '<em><b>TF</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>TF</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #TF
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int TF_VALUE = 4;

	/**
	 * The '<em><b>UD</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>UD</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #UD
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int UD_VALUE = 5;

	/**
	 * An array of all the '<em><b>First Fill Pharmacy Supply Type</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final FirstFillPharmacySupplyType[] VALUES_ARRAY =
		new FirstFillPharmacySupplyType[] {
			FF,
			DF,
			FFC,
			FFP,
			TF,
			UD,
		};

	/**
	 * A public read-only list of all the '<em><b>First Fill Pharmacy Supply Type</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<FirstFillPharmacySupplyType> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>First Fill Pharmacy Supply Type</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static FirstFillPharmacySupplyType get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			FirstFillPharmacySupplyType result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>First Fill Pharmacy Supply Type</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static FirstFillPharmacySupplyType getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			FirstFillPharmacySupplyType result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>First Fill Pharmacy Supply Type</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static FirstFillPharmacySupplyType get(int value) {
		switch (value) {
			case FF_VALUE: return FF;
			case DF_VALUE: return DF;
			case FFC_VALUE: return FFC;
			case FFP_VALUE: return FFP;
			case TF_VALUE: return TF;
			case UD_VALUE: return UD;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private FirstFillPharmacySupplyType(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //FirstFillPharmacySupplyType
